package test;

import bean.*;
import conn.ConnectDatabase;

import java.sql.Timestamp;
import java.util.Date;

import DAO.*;
import service.*;

public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Date date = new Date();
		//得到一个timestamp格式的时间，存入mysql中的时间格式为"yyyy-MM-dd HH:mm:ss"
		Timestamp timestamp = new Timestamp(date.getTime());
		System.out.print(timestamp);
	}

}
